package org.example.sso.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.anno.Schema;

@Data
@Schema(description = "权限表")
@TableName(value = "sys_permission")
@EqualsAndHashCode(callSuper = true)
public class PermissionDO extends BaseDO {
//    id              bigint primary key comment '主键',
//    permission_name varchar(50)                        not null comment '权限名称',
//    permission_code varchar(300)                       not null comment '权限代码',

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @Schema(description = "权限名称")
    @TableField(value = "permission_name")
    private String permissionName;
    @Schema(description = "权限代码")
    @TableField(value = "permission_code")
    private String permissionCode;
}
